<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 流年 <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用公共文件
function error233($e)
{
    echo '<pre>';
    $arr = $e->getTrace();
    print_r($arr[0]);
    die;
}


function prbr($data)
{
    echo '<pre>';
    print_r($data);
    echo '</pre>';
    echo '<br />';
}

function prhr($data)
{
    echo '<pre>';
    print_r($data);
    echo '</pre>';
    echo '<hr />';
}

function prexit($data)
{
    echo '<pre>';
    print_r($data);
    echo '</pre>';
    exit;
}



// var_dump(function_exists('dater')); => false;
function dater()
{
    return date('Y-m-d H:i:s');
}

// 写入数据库的测试方法
function logss($data)
{
    \think\Db::name('test')->insert(['content' => $data]);
}